<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="box"></div>
    <script>
      //   let n = 3;
      //   let m = "qwe"; //字符串
      //   // 判断一个值 是不是 不是一个数字
      //   NaN;
      //   console.log(Number("999999999999999999999999999999")); //true
      //   let num = "19283798";

      //   +num ==== Number(num)
      //   -num
      //   let num = "123.321qweqwasdas";
      //   //   num = parseInt(num);
      //   num = parseFloat(num);
      //   console.log(typeof num);
      //   num = num.toFixed(2);
      //   console.log(typeof num);

      //   let n = 10000000;
      //   console.log(n.toString()); //返回数字在特定语言环境下的表示字符串
      //   let n = Math.max(8, 2, 1, 5, 9, 2);
      //   console.log(n);
      //获取指定范围的随机数
      function getRandom(min, max) {
        return Math.floor(Math.random() * (max - min + 1) + min);
      }

      let res = getRandom(90, 100);
      console.log(res);
    </script>
  </body>
</html>
